a= {}
b=0

for _ in range(3):
    c = input("请输入班级名称: ")
    d = int(input("请输入选修人数: "))
    a[c] = d
    b+=d

print("任务2: 选修该课程的总人数为:", b)